﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{

    public class ManagerService
    {
        private DAL.ManagerDao managerDao = new DAL.ManagerDao();

        public List<Admin> list(Admin admin)
        {
            return managerDao.list(admin);
        }

        public bool save(Admin admin)
        {
            return managerDao.save(admin) > 0;
        }

        public bool deleteById(string personId)
        {
            return managerDao.deleteById(personId) > 0;
        }

        public bool setAdmin(Admin admin)
        {
            return managerDao.setAdmin(admin) > 0;
        }
    }
}
